home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / sys / amiga / sksh / mkexam < prev    next >
Encoding:
Text File  |  1993-03-17  |  849 b   |  34 lines

  1. #!c:sksh
  2.  
  3. #*************************************************************************
  4. #
  5. # mkexam -- full build of an example program, under SKsh.
  6. #
  7. # This is just an example, using the typical compiler flags I use.
  8. # You should edit it to reflect your setup/shell/whatever.
  9. #
  10. # Requires in lib: ->
  11. #        plplotf.lib
  12. #        reqtools.lib
  13. #
  14. # Requires plplot.h in include path.
  15. # Written for SAS/C 6.x.
  16. #
  17. #*************************************************************************
  18.  
  19. if [ $# -lt 1 -o "$1" = '-?' ]
  20. then
  21.    echo 'Usage:' $(basename $0) 'files...'
  22.    echo '  (builds plplot example programs [specify basename only])'
  23.    return 1
  24. fi
  25.  
  26. numloop i = 1 $#
  27. do
  28.     sc "math=ieee" nover "dbg=symbol" "ign=84,89,147,161"  $1.c
  29.     slink  lib:c.o $1.o lib lib:plplotf.lib lib:scmieee.lib lib:sc.lib \
  30.        lib:amiga.lib lib:reqtools.lib  to $1
  31.     shift
  32. done
  33.  
  34.